package com.zhiyun.service;

import com.zhiyun.domain.TestPaper;
import com.zhiyun.vo.Result;

public interface TestPaperService {
    /**
     *TestPaper里映射了多个TestQuestion
     * @return List<TestPaper>
     */
    public Result selectAllTestPaper(int teacherId);

    /**
     *
     * @param id
     * @return TestPaper
     */
    public Result selectByIdWithQuestions(int id);
    public Result insertTestPaper(TestPaper testPaper);
    public Result updateTestPaper(TestPaper testPaper);
    public Result deleteTestPaper(Integer id);
}
